<template>
    <div class="property-container">

        <div class="property-title">
            <p class="property-title-p1">ETH</p>
            <p class="property-title-p2">
                <strong>0</strong>
            </p>
        </div>
        <div class="property-chart"></div>
        <div class="record-list">
            <div class="record-title">
                最近交易记录
            </div>
            <ul class="record-list-inner">
                <li>
                    <div class="record-list-inner-left">
                        <p>0x13fg9f...4e888Nv9tNxa</p>
                        <p class="inner-left-p2">16小时前</p>
                    </div>
                    <div class="record-num">
                        +0 ether
                    </div>
                </li>
                <li>
                    <div class="record-list-inner-left">
                        <p>0x13fg9f...4e888Nv9tNxa</p>
                        <p class="inner-left-p2">16小时前</p>
                    </div>
                    <div class="record-num">
                        +0 ether
                    </div>
                </li>
                <li>
                    <div class="record-list-inner-left">
                        <p>0x13fg9f...4e888Nv9tNxa</p>
                        <p class="inner-left-p2">16小时前</p>
                    </div>
                    <div class="record-num">
                        +0 ether
                    </div>
                </li>
                <li>
                    <div class="record-list-inner-left">
                        <p>0x13fg9f...4e888Nv9tNxa</p>
                        <p class="inner-left-p2">16小时前</p>
                    </div>
                    <div class="record-num">
                        +0 ether
                    </div>
                </li>
            </ul>
            <div class="block-paging">
                <el-pagination
                        @size-change="handleSizeChange"
                        @current-change="handleCurrentChange"
                        :current-page="currentPage4"
                        :page-sizes="[8, 16, 24, 32]"
                        :page-size="4"
                        layout="total, sizes, prev, pager, next, jumper"
                        :total="32">
                </el-pagination>
            </div>
        </div>
        <div class="transfer-btn">
            <el-button type="primary"  @click="transfer()">
                <icon class="icon-share-square" name="share-square-o"></icon>
                转账
            </el-button>
        </div>
    </div>
</template>
<script>
    export default {
        data() {
            return {
                currentPage1: 5,
                currentPage2: 5,
                currentPage3: 5,
                currentPage4: 4
            };
        },
        methods: {
            handleSizeChange(val) {
                console.log(`每页 ${val} 条`);
            },
            handleCurrentChange(val) {
                console.log(`当前页: ${val}`);
            },
            transfer(){
                this.$router.push({path:'/home/transfer'})
            }
        }
    };
</script>
<style>
    .property-container{
        width: 600px;
        height: auto;
        margin: 0 auto;
        position: relative;
    }
    .property-title{
        text-align: center;
        padding: 30px 0;
    }
    .property-title .property-title-p1{
        font-size: 16px;
        padding-bottom: 20px;
    }
    .property-title .property-title-p2{
        font-size: 32px;
    }
    .property-chart{
        width: 350px;
        height: 150px;
        border: 1px #ccc solid;
        margin: 0 auto;
    }
    .record-list{
        margin-top: 30px;
    }
    .record-list .record-title{
        font-size: 15px;
    }
    .record-list .record-list-inner li{
        border-bottom: 1px #ccc solid;
        padding: 10px 0;
        display: flex;
        justify-content: space-between;
    }
    .record-list-inner-left p{
        font-size: 15px;
        line-height: 30px;
    }
    .record-list-inner-left .inner-left-p2{
        font-size: 12px;
        color: #999;

    }
    .record-num{
        color: #0866b1;
    }
    .block-paging{
        margin-top: 30px;
    }
    .transfer-btn{
        position: absolute;
        top: 20px;
        right: -50px;
    }
    .icon-share-square{
        float: left;
        margin-right: 10px;
    }
    .transfer-btn .el-button{
        padding: 8px 12px;
    }
</style>